#import <UIKit/UIKit.h>
@class FFTagsView;
typedef void(^tagBtnClicked)(FFTagsView *aTagsView, UIButton *sender, NSInteger tag);
@interface FFTagsViewConfig : NSObject
@property (nonatomic) CGFloat itemHerMargin;            
@property (nonatomic) CGFloat itemVerMargin;            
@property (nonatomic) CGFloat itemHeight;               
@property (nonatomic) CGFloat itemContentEdgs;          
@property (nonatomic) CGFloat topBottomSpace;           
@property (nonatomic) CGFloat fontSize;                     
@property (nonatomic,strong) UIColor *normalTitleColor;
@property (nonatomic,strong) UIColor *selectedTitleColor;
@property (nonatomic,strong) UIColor *backgroundColor;
@property (nonatomic,strong) UIImage *normalBgImage;
@property (nonatomic,strong) UIImage *selectedBgImage;
@property (nonatomic) BOOL hasBorder;
@property (nonatomic) CGFloat borderRadius;
@property (nonatomic) CGFloat borderWidth;
@property (nonatomic) CGFloat borderColor;
@property (nonatomic) BOOL isCanSelected;
@property (nonatomic) BOOL isCanCancelSelected; 
@property (nonatomic) BOOL isMulti;
@property (nonatomic,copy) NSString *singleSelectedTitle;     
@property (nonatomic,copy) NSArray *selectedDefaultTags;      
@end
@interface FFTagsView : UIView
@property (nonatomic,copy) tagBtnClicked tagBtnClickedBlock;
@property (nonatomic,strong) UIImageView *bgImageView;
@property (nonatomic,strong) UIButton *selectedBtn;
@property (nonatomic,copy) NSMutableArray *multiSelectedTags;
-(instancetype)initWithFrame:(CGRect)frame tagsArray:(NSArray *)tagsArr config:(FFTagsViewConfig *)config;
- (CGFloat)heighttagsArray:(NSArray *)tagsArr config:(FFTagsViewConfig *)config;
@end
